﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" culture="auto" meta:resourcekey="PageResource1" uiculture="auto"
CodeFile="TruckEdit.aspx.cs" Inherits="TruckManage_TruckEdit" Title="编辑车辆信息" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

    <div class="title">
        &nbsp;<asp:Label ID="lblPageType" runat="server" Text="编辑车辆信息" meta:resourcekey="lblPageTypeResource1"></asp:Label></div>
    <table class="add_table" cellspacing="1" cellpadding="3" align="center">
        <tr>
            <td align="right">
                <label>
                    <b style="color: Red">*</b></label><asp:Label ID="lblLicenseNO" runat="server" Text="车牌：" meta:resourcekey="lblLicenseNOResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtLicenseNO" runat="server" Width="172px" 
                    ValidationGroup="truck" meta:resourcekey="txtLicenseNOResource1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rqvalLicenseNO" runat="server" ControlToValidate="txtLicenseNO" meta:resourcekey="rqvalLicenseNOResource1"
                    ErrorMessage="车牌号不能为空" ValidationGroup="truck"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblType" runat="server" Text="车型：" meta:resourcekey="lblTypeResource1"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlType" runat="server"></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblCustomsNO" runat="server" Text="海关编号：" meta:resourcekey="lblCustomsNOResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtCustomsNO" runat="server" Width="172px" 
                    meta:resourcekey="txtCustomsNOResource1"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblICNO" runat="server" Text="IC号码：" meta:resourcekey="lblICNOResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtICNO" runat="server" Width="172px" 
                    meta:resourcekey="txtICNOResource1"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblCustomsPWD" runat="server" Text="海关密码：" meta:resourcekey="lblCustomsPWDResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtCustomsPWD" runat="server" Width="172px" 
                    meta:resourcekey="txtCustomsPWDResource1"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblYCDate" runat="server" Text="年审日期：" meta:resourcekey="lblYCDateResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtYCDate" runat="server" Width="172px" onkeydown="return pdDate(this,event);"
                    ValidationGroup="truck" meta:resourcekey="txtYCDateResource1"></asp:TextBox>
                <cc1:CalendarExtender ID="cbeYCDate" runat="server" TargetControlID="txtYCDate"
                    Format="yyyy-MM-dd" >
                </cc1:CalendarExtender>
                <asp:RegularExpressionValidator ID="revalYCDate" runat="server" ControlToValidate="txtYCDate" ValidationGroup="truck" meta:resourcekey="revalYCDateResource1"
                    ErrorMessage="日期格式不正确" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblBIDate" runat="server" Text="保险日期：" meta:resourcekey="lblBDateResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtBIDate" runat="server" Width="172px" onkeydown="return pdDate(this,event);"
                    ValidationGroup="truck" meta:resourcekey="txtBIDateResource1"></asp:TextBox>
                <cc1:CalendarExtender ID="cbeBIDate" runat="server" TargetControlID="txtBIDate"
                        Format="yyyy-MM-dd" ></cc1:CalendarExtender>
                <asp:RegularExpressionValidator ID="revalBIDate" runat="server" ControlToValidate="txtBIDate" ValidationGroup="truck" meta:resourcekey="revalBIDateResource1"
                    ErrorMessage="日期格式不正确" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <label>
                    <b style="color: Red">*</b></label><asp:Label ID="lblDriver" runat="server" Text="司机：" meta:resourcekey="lblDriverResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtDriver" runat="server" Width="172px" ValidationGroup="truck" meta:resourcekey="txtDriverResource1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rqvalDriver" runat="server" ControlToValidate="txtDriver" meta:resourcekey="rqvalDriverResource1"
                    ErrorMessage="司机不能为空" ValidationGroup="truck"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                 <asp:Label ID="lblSex" runat="server" Text="性别：" meta:resourcekey="lblSexResource1"></asp:Label>
            </td>
            <td>
                 <asp:RadioButton ID="rbSex1" runat="server" Checked="true" Text="男" GroupName="Sex" meta:resourcekey="rbSex1Resource1"/><asp:RadioButton
                        ID="rbSex0" runat="server" Text="女" GroupName="Sex" meta:resourcekey="rbSex0Resource1"/>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblIDCard" runat="server" Text="身份证：" meta:resourcekey="lblIDCardResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtIDCard" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblAddress" runat="server" Text="地址：" meta:resourcekey="lblAddressResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblMPhone" runat="server" Text="手机：" meta:resourcekey="lblMPhoneResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMPhone" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblLicence" runat="server" Text="驾照：" meta:resourcekey="lblLicenceResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtLicence" runat="server" Width="172px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblBail" runat="server" Text="保证金：" meta:resourcekey="lblBailResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtBail" runat="server" Width="172px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="revalBail" runat="server" ErrorMessage="请输入整数" ControlToValidate="txtBail" 
                    ValidationExpression="^[0-9]*$" ValidationGroup="truck" meta:resourcekey="rqvalBailResource1"></asp:RegularExpressionValidator> 
            </td>
        </tr>
        <tr>
            <td align="right">
                 <asp:Label ID="lblStatus" runat="server" Text="状态：" meta:resourcekey="lblStatusResource1"></asp:Label>
            </td>
            <td>
                 <asp:RadioButton ID="rad1" runat="server" Checked="True" Text="可用" 
                     GroupName="Status" meta:resourcekey="rad1Resource1" /><asp:RadioButton
                        ID="rad0" runat="server" Text="无效" GroupName="Status" 
                     meta:resourcekey="rad0Resource1" />
                 <asp:RadioButton ID="rad2" runat="server" Text="报障" GroupName="Status" 
                     meta:resourcekey="rad2Resource1" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblRemark" runat="server" Text="备注：" meta:resourcekey="lblRemarkResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtRemark" runat="server" Width="172px" 
                    meta:resourcekey="txtRemarkResource1"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table class="add_table" cellspacing="1" cellpadding="3">
        <tr>
            <td align="center">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" 
                    CssClass="btn" ValidationGroup="truck" meta:resourcekey="btnSaveResource1" />
               &nbsp; <asp:Button ID="btnReset" runat="server" Text="返回" CssClass="btn" 
                    OnClick="btnReset_Click" meta:resourcekey="btnResetResource1" />

            </td>
        </tr>
    </table>      
</asp:Content>